package javaer.starter.idea.util;

import java.util.concurrent.TimeUnit;

/**
 * @author yangzhen
 * @date 2023/7/24 10:40
 * @since 1.0.0
 */
public class ThreadUtils {

    public static void sleepMs(long timeout) {
        try {
            TimeUnit.MILLISECONDS.sleep(timeout);
        } catch (InterruptedException exception) {
            throw new RuntimeException(exception.getMessage());
        }
    }
}
